﻿using System;
using UtilityLibrary;

class Program
{
    static void Main(string[] args)
    {
        Console.WriteLine("请输入内容");
        string? input = Console.ReadLine();
        if (string.IsNullOrEmpty(input)) throw new Exception("输入内容不能为空");
        bool flag = StringLibrary.StartsWithUpper(input);
        var now = DateTime.Now;
        Console.WriteLine($"[info][{now: yyyy-MM-dd HH:mm:ss}] 输入内容为 '{input}', 首字母是大写： {flag}");
        Console.WriteLine("parse any key to exit.");
        Console.ReadKey(true);
    }
}